﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Finbook.GameApp.Models
{
    public class Role
    {
        public int HP { get; set; }
        public int Damage { get; set; }
        public Role()
        {}
        public Role(int hp,int damage)
        {
            HP = hp;
            Damage = damage;
        }

        public void BeHit(int cost_hp)
        {
            HP -= cost_hp;
            HP = HP == 0 ? 0 : HP;
        }
    }
}
